Statistical message classifier

ABSTRACT

A system and method are disclosed for improving a statistical message classifier. A message may be tested with a machine classifier, wherein the machine classifier is capable of making a classification on the message. In the event the message is classifiable by the machine classifier, the statistical message classifier is updated according to the reliable classification made by the machine classifier. The message may also be tested with a first classifier. In the event that the message is not classifiable by the first classifier, it is tested with a second classifier, wherein the second classifier is capable of making a second classification. In the event that the message is classifiable by the second classifier, the statistical message classifier is updated according to the second classification.

CROSS-REFERENCE TO RELATED APPLICATIONS

The application is a continuation and claims the priority benefit of U.S. patent application Ser. No. 13/340,509 filed Dec. 29, 2011, which is a continuation and claims the priority benefit of U.S. patent application Ser. No. 10/650,487 filed Aug. 27, 2003, which claims the priority benefit of U.S. provisional application 60/489,148 filed Jul. 22, 2003, the disclosures of which are incorporated by reference for all purposes.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates generally to message classification. More specifically, a technique for avoiding junk messages (spam) is disclosed.

2. Description of the Related Art

Electronic messages have become an indispensable part of modem communication. Electronic messages such as email or instant messages are popular because they are fast, easy, and have essentially no incremental cost. Unfortunately, these advantages of electronic messages are also exploited by marketers who regularly send out unsolicited junk messages. The junk messages are referred to as “spam”, and spam senders are referred to as “spammers”. Spam messages are a nuisance for users. They clog people's inbox, waste system resources, often promote distasteful subjects, and sometimes sponsor outright scams.

Personalized statistical search is a technique used by some systems for detecting and blocking spam messages. Personalized statistical searches typically depend on users to sort the messages into categories. For example, the users may put spam messages into a junk folder and keep good messages in the inbox. The spam protection program periodically updates the personalized statistical searcher by processing the categorized messages. When a new message comes in, the improved statistical searcher determines whether the incoming message is spam. The updating of the personalized statistical searcher is typically done by finding the tokens and features in the messages and updating a score or probability associated with each feature or token found in the messages. There are several techniques that are applicable for computing the score or probability. For example, if “cash” occurs in 200 of 1,000 spam messages and three out of 500 non-spam messages, the spam probability associated with the word is (200/1000)/(3/500+200/1000)=0.971. A message having a high proportion of tokens or features associated with high spam probability is likely to be a spam message.

Personalized statistical searches have been gaining popularity as a spam fighting technique because of several advantages. Once trained, the spam filter can detect a large proportion of spam effectively. Also, the filters adapt to learn the type of words and features used in both spam and non-spam. Because they consider evidence of spam as well as evidence of good email, personal statistical searches yield few false positives (legitimate non-spam email that are mistakenly identified as spam). Additionally, the filters can be personalized so that a classification is tailored for the individual. However, personalized statistical searchers also have several disadvantages. Since their training requires messages that are categorized by the users, they are typically deployed on the client, and are not well suited for server deployment. Also, classifying email messages manually is a labor intensive process, therefore is not suitable for deployment at the corporate level where large amounts of messages are received. It would be desirable to have statistical searches that do not depend on manual classification by users, and are suitable for server deployment and corporate level deployment.

SUMMARY OF THE PRESENTLY CLAIMED INVENTION

An According to an exemplary embodiment, a method for improving a statistical message classifier includes testing a message with a machine classifier. The machine classifier may be capable of making a classification of the message. In the event that the machine classifier makes the classification, the method includes updating the statistical message classifier according to the classification made by the machine classifier. The statistical message classifier may be configured to detect an unsolicited message and includes a knowledge base that tracks the spam probability of features in classified messages.

According to another exemplary embodiment, a method for improving a statistical message classifier includes testing a message with a first classifier. The first classifier may be capable of making a first classification. In the event that the message is classifiable by the first classifier, the method includes updating the statistical message classifier according to the first classification. In the event that the first classifier does not make the classification, the method includes testing the message with a second classifier. The second classifier may be capable of making a second classification. In the event that the second classifier makes the classification, the method includes updating the statistical message classifier according to the second classification. The statistical message classifier may be configured to detect an unsolicited message and includes a knowledge base that tracks the spam probability of features in classified messages.

According to another exemplary embodiment, a system for classifying a message includes a statistical message classifier configured to detect an unsolicited message and includes a knowledge base that tracks the spam probability of features in classified messages. The system also includes a machine classifier coupled to the statistical message classifier. The message classifier is configured to test the message. The machine classifier may be capable of making a reliable classification. In the event the machine classifier makes the classification, the statistical message classifier is updated according to the reliable classification made by the machine classifier.

According yet another exemplary embodiment, a system for improving a statistical message classifier includes a first classifier configured to test the message, reliably make a first classification, and update the statistical message classifier according to the first classification in the event that the first classifier makes the classification. The statistical message classifier is configured to detect an unsolicited message and includes a knowledge base that tracks the spam probability of features in classified messages. The system also includes a second classifier coupled to the first classifier and that is capable of reliably making a second classification. The second classifier is also configured to further test the message in the event that the message is not classifiable by the first classifier.

Some embodiments include a computer readable medium having embodied thereon a program, the program being executable by a processor to perform a method for improving a statistical message classifier. The method includes testing a message with a machine classifier. The machine classifier may be capable of making a reliable classification. In the event the machine classifier makes the classification, the method includes• updating the statistical message classifier according to the reliable classification made by the machine classifier. The statistical message classifier may be configured to detect an unsolicited message and includes a knowledge base that tracks the spam probability of features in classified messages.

Other embodiments include a computer readable medium having embodied thereon a program, the program being executable to perform a method for improving a statistical message classifier. The method includes testing a message with a first classifier. The first classifier may be capable of reliably making a first classification. In the event that the first classifier makes the classification, the method includes updating the statistical message classifier according to the first classification. The statistical message classifier may be configured to detect an unsolicited message and includes a knowledge base that tracks the spam probability of features in classified messages. In the event that the first classifier does not make the classification, the method includes testing the message with a second classifier. The second classifier may be capable of reliably making a second classification. In the event that the second classifier makes the classification, the method includes updating the statistical message classifier according to the second classification.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will be readily understood by the following detailed description in conjunction with the accompanying drawings, wherein like reference numerals designate like structural elements, and in which:

FIG. 1 is a block diagram illustrating a statistical message filter embodiment.

FIG. 2 is a flowchart illustrating the processing of a message by a system embodiment that includes a statistical classifier.

FIG. 3 is a flowchart illustrating the processing of a message by another system 15 embodiment that includes a statistical classifier.

DETAILED DESCRIPTION

Embodiments The invention can be implemented in numerous ways, including as a process, an apparatus, a system, a composition of matter, a computer readable medium such as a computer readable storage medium or a computer network wherein program instructions are sent over optical or electronic communication links. In this specification, these implementations, or any other form that the invention may take, are referred to as techniques. In general, the order of the steps of disclosed processes may be altered within the scope of the invention.

A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.

An improved technique for improving a statistical message classifier is disclosed. In some embodiments, a classifier tests messages and attempts to make a classification. If the message is classified by the classifier, information pertaining to the message is used to update the statistical message classifier. The classifier is preferably a reliable classifier such as a whitelist classifier, a collaborative fingerprinting classifier, an image analyzer, a probe account, a challenge-response classifier, or any other appropriate classifier. A reliable good classifier and a reliable junk classifier are sometimes used in some embodiments. In some embodiments, the same classifier may classify both good and junk messages. The classifiers may be machine classifiers or user-augmented classifiers.

As used herein, a message refers to an e-mail message, an instant message, a text message, and/or any other appropriate information transmitted electronically. For the sake of clarity, in the following examples, techniques used for e-mail messages are discussed in detail; however, the techniques are also applicable for any other types of messages.

FIG. 1 is a block diagram illustrating a statistical message filter embodiment. Reliable classifiers 102 and 104 process incoming message 100 to make a classification. Although two reliable classifiers are shown, one or more classifiers may be used in other embodiments and the number of reliable classifiers may vary for different implementations. The message may be classified as spam, non-spam, or any other appropriate category. A statistical message classifier 106 is trained using the results from the reliable classifiers periodically or as messages are processed. The reliable classifier may directly update the statistical message classifier, or store the results in a knowledge base 108 that is then used to update the statistical message classifier.

The reliability of a classifier depends on how accurately it makes a classification. The reliable classifiers are so named because when they make a classification, the classification is reliable and the outcome of the classification is likely to be correct. It should be noted that the reliable classifiers sometimes do not make any classification of a message. For example, a reliable classifier may classify 20% of the messages it processes as spam, 10% as non-spam, and makes no judgment on the rest 70% of the messages. Of the messages that are determined to be either spam or non-spam, the probability of erroneous classification may be less than 1%. While the actual percentages and criteria may vary for different implementations, a classifier is considered to be reliable as long as it is able to in some cases make a more accurate classification than the statistical message classifier under training.

There are several types of reliable classifiers that may be applicable for statistical message filtering, including: an adaptive whitelist that reliably classifies non-spam messages, a collaborative fingerprinting filter that classifies spam messages, an image analyzer that is capable of determining flesh tones in pornographic spam messages, a probe account that does not belong to any legitimate user and presumably only receives spam messages, a challenge-response classifier, etc. Once a classification is made by the reliable classifier, the statistical message classifier is updated accordingly. In some embodiments, the statistical message classifier includes a knowledge base that tracks the spam probability of features in classified messages. The features may include words, tokens, message identifier, message protocol, address, hypertext markup language document (HTML) properties or any other appropriate aspects of the message that can be used to train the statistical message classifier.

The reliable classifiers may update the statistical message classifier by processing messages such as previously stored messages, outgoing messages and incoming messages. The reliable classifiers are preferably machine classifiers that can process large amounts of messages more efficiently than manually classifying the messages. Using machine classifiers makes a statistical message classifier more suitable for server and corporate level deployment.

FIG. 2 is a flowchart illustrating the processing of a message by a system embodiment that includes a statistical classifier. Once a message is received (200), it is tested with a machine classifier (202). The machine classifier is preferably a reliable one although other classifiers may also be used. The classifier attempts to classify the message and provides a classification result (204). If the message is classified as either good or spam, the statistical classifier is updated (206). If, however, the machine classifier does not make a judgment on the message, the message is then further processed (208). In some embodiments, the message is delivered to the user. In some embodiments, the message is further classified by other classifiers. In some embodiments, the statistical classifier is used to further test the message.

The techniques may be used to update a statistical message classifier for an individual user or a group of users. In some embodiments, the users share a statistical message classifier that is updated when a reliable classifier classifies the message. In some embodiments, the users have their own statistical message classifiers. Once a reliable classifier classifies the message, the statistical message classifiers of the individual users are updated.

FIG. 3 is a flowchart illustrating the processing of a message by another system embodiment that includes a statistical classifier. Once a message is received (300), it is first tested with a reliable good classifier (302). The reliable good classifier is able to make a classification of messages that are good (i.e., non-spam) reliably. In one embodiment the reliable good classifier is a whitelist classifier that classifies the message based on a database of known allowable sender addresses. The testing result may indicate that the message is good, and control is transferred from 304 to 318, where the good message is processed accordingly; in some embodiments the message is delivered to the intended recipient. If, however, the reliable good classifier makes no judgment on whether the message is good, control is transferred from 304 to 306, where the message is further tested with a reliable junk classifier. Although the reliable good classifier and the reliable junk classifier are two distinct classifiers in this embodiment, a single classifier may function both as the reliable good classifier and the reliable junk classifier.

The reliable junk classifier, for example, a classifier that uses a collaborative fingerprinting technique, is capable of reliably determining whether a message is junk. If the message is determined to be junk, control is transferred from 308 to 320 where the junk message is processed accordingly. In some embodiments, the junk message is quarantined; in some embodiments the junk message is deleted. If, however, the reliable junk classifier is unable to determine whether the message is junk, control is then optionally transferred from 308 to 310, where other classification techniques are applied. In some embodiments, the statistical classifier is used to further test the message. If the other classification techniques determine that the message is a good message, control is then transferred from 312 to 318 where the good message is processed as such. If the message is classified as junk, control is transferred from 312 to 320, where the junk message is processed accordingly. Whether the message is determined to be good or junk, this information is useful for updating the statistical classifier. Thus, control is transferred to updating the statistical classifier (322) from both 318 and 320. The order of testing may be different for other embodiments. Although the reliable classifiers are preferably machine classifiers, the process is also applicable to classifications done by a person.

There are several ways to update the statistical classifier. In some embodiments, a training set is updated using the tokens or features of the classified message. In some embodiments, a statistical model used by the classifier is updated to reflect the classification information derived from the message. In some embodiments, in order to protect the privacy of email recipients, the information pertaining to the messages is encrypted. In some embodiments, the encryption is omitted since the tokens or features in the messages are parsed and stored in such a way that the original message cannot be easily reconstructed and thus does not pose a serious threat to privacy.

An example is shown below to illustrate how the statistical model is improved using classified messages. The reliable classifiers classify received messages and provide the statistical message classifier with a knowledge base. A message is parsed to obtain various features. If the message is determined to be good, the “good count” for each of the features in the message is incremented, and if the message is determined to be spam, the “spam count” for each of the features in the message is decremented. Table 1 is used in some embodiments to store various features and the number of times they are determined either as good or spam:

TABLE 1 Feature Name Good Count Spam Count mortgage 10 1 auto 1 10 greeting 3 1 . . . . . . . . . In some embodiments, user inputs are used to augment the classification made by the reliable classifiers. Since the user's decisions are ultimately the most reliable classification available, the user-augmented classification is given extra weight in some embodiments. Table 2 is used in some embodiments to track the user classification. If a non-spam or unclassified message delivered to a user is determined to be junk by the user, the junk count is then incremented. If the message is determined to be junk by the classifier, but the user reverses the decision, the unjunk count is then incremented. Optionally, a whitelist counter is used to track the number off times a feature has appeared in whitelisted emails. Typically, a whitelisted email is email that comes from an address stored in the recipient's address book or an address to which the recipient has previously sent a message. Instead of scoring all the white listed messages, in some embodiments a portion of white listed messages are processed.

TABLE 2 Whitelist Feature Name Junk Count Unjunk Count Count Score mortgage 552 7 7 −3.33 auto 132 5 186 0.58 greeting 16 1 11 0.07 . . . . . . . . . . . .

A score for each feature may be computed based on the counter values in the tables and a predetermined score function. In one embodiment, the score is computed based on counters from both tables using the following equations: CountA=S1*SpamCount+S2*JunkCount   (equation 1) CountB=S3*GoodCount+S4*UnjunkCount+S5*WhiteListCount   (equation 2) FeatureScore=SCORE_FUNCTION(CountA, CountB)   (equation 3) where S1, S2, S3, S4 and S5 are learning parameters of the system that may be adapted to minimize error rate, and SCORE_FUNCTION is a function dependent on the statistical model that is used.

In one embodiment, the learning parameters are all equal to 1 and the following score function is used:

$\begin{matrix} {{SCORE\_ FUNCTION} = {{- {\log\left( \frac{{CountA} + A}{{TotalSpam} + B} \right)}} + {\log\left( \frac{{CountB} + A}{{TotalGood} + B} \right)}}} & \left( {{equation}\mspace{14mu} 4} \right) \end{matrix}$ where TotalSpam is the total number of spam messages identified and TotalGood is the total number of good messages identified, and A and B are prior constants that may vary in different implementations. In this embodiment, A is 10 and B is 250. For example, if “cash” occurs in 200 of 1,000 spam messages and three out of 500 non-spam messages, its feature score is computed as the following:

${SCORE\_ FUNCTION} = {{{- {\log\left( \frac{200 + 10}{1000 + 250} \right)}} + {\log\left( \frac{3 + 10}{500 + 250} \right)}} = 2.2713}$

A technique for improving a statistical message classifier has been disclosed. In some embodiments, the statistical message classifier is updated according to message classification by a machine classifier. In some embodiments, the statistical message classifier is updated according to the classification made by one or more other type of classifiers. These techniques reduce the amount of labor required for training a statistical message classifier, and make such classifier more suitable for server deployment.

Although the foregoing invention has been described in some detail for purposes of clarity of understanding, it will be apparent that certain changes and modifications may be practiced within the scope of the appended claims. It should be noted that there are many alternative ways of implementing both the process and apparatus of the present invention. Accordingly, the present embodiments are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims. 

What is claimed is:
 1. A method for improving a statistical message classifier, the method comprising: receiving a message over a network communication interface; identifying by a processor executing instructions out of a memory a feature in the message that is associated with a junk count; testing the message with a machine classifier by the processor performing a calculation according to a logarithmic function including the junk count, wherein the machine classifier outputs a value for the statistical message classifier for storage in the memory; updating the statistical message classifier stored in the memory according to the logarithmic calculation made by the machine classifier, wherein the stored statistical message classifier corresponds to a probability that the feature in the message is spam; identifying that the message is spam based on the probability that the feature in the message is spam; and quarantining the message.
 2. The method for improving a message classifier as recited in claim 1, wherein the machine classifier is further capable of making no classification on the message.
 3. The method for improving a message classifier as recited in claim 1, wherein the machine classifier includes a white list classifier.
 4. The method for improving a message classifier as recited in claim 1, wherein the machine classifier includes a collaborative fingerprinting classifier.
 5. The method for improving a message classifier as recited in claim 1, wherein the machine classifier includes an image analyzer.
 6. The method for improving a message classifier as recited in claim 1, wherein the machine classifier includes a probe account.
 7. The method for improving a message classifier as recited in claim 1, wherein the machine classifier includes a challenge-response classifier.
 8. The method for improving a message classifier as recited in claim 1, wherein updating the statistical message classifier comprises updating a knowledge base used to train the statistical message classifier.
 9. The method for improving a message classifier as recited in claim 1, wherein updating the statistical message classifier comprises updating a statistical model used by the statistical message classifier.
 10. The method for improving a message classifier as recited in claim 1, wherein updating the statistical message classifier comprises parsing the message to obtain the feature.
 11. The method for improving a message classifier as recited in claim 1, wherein updating the statistical message classifier comprises parsing the message to obtain the feature and updating a counter corresponding to the feature.
 12. The method for improving a message classifier as recited in claim 1, wherein updating the statistical message classifier comprises parsing the message to obtain the feature and updating a training set.
 13. The method for improving a message classifier as recited in claim 1, wherein updating the statistical message classifier comprises parsing the message to obtain a feature and computing a spam probability associated with the feature.
 14. The method for improving a message classifier as recited in claim 1, wherein updating the statistical message classifier comprises parsing the message to obtain the feature and computing a score associated with the feature.
 15. The method for improving a message classifier as recited in claim 1, wherein the message is a previously stored message.
 16. The method for improving a message classifier as recited in claim 1, wherein the message is an incoming message.
 17. The method for improving a message classifier as recited in claim 1, in the event that the message is not classifiable by the classifier, further comprising testing the message with another machine classifier.
 18. A method for improving a statistical message classifier comprising: receiving a message over the network communication interface; identifying by a processor executing instructions out of a memory a feature in the message that is associated with a junk count; testing message with a first classifier by the processor performing a calculation according to a logarithmic function including the junk count, wherein the first classifier outputs a value for the statistical message classifier for storage in the memory and a first classification; in the event that the message is classifiable by the first classifier, updating the statistical message classifier according to the logarithmic calculation; in the event that the first classifier does not make the first classification, testing the message with a second classifier, wherein the second classifier is capable of making a second classification by the processor; and updating the statistical message storage in the memory classifier according to the second classification by the processor, wherein the statistical message corresponds to a probability that the feature in the message is spam; identifying that the message is not spam based on the probability that the feature in the message is spam; and delivering the message to a recipient based on identifying that the message is not spam.
 19. The method for improving a message classifier as recited in claim 18, wherein the second classifier is a reliable classifier having a probability of erroneous classification of less than one percent.
 20. A method for improving a statistical message classifier comprising: receiving a message over a network communication interface; identifying by a processor executing instructions out of a memory a feature in the message that is associated with a good count; testing the message with a first classifier wherein the first classifier is a reliable good classifier capable of making a first classification by the processor performing a calculation according to a logarithmic function including the good count, wherein the first classifier outputs a value for the statistical message classifier for storage in the memory; in the event that the message is classifiable by the first classifier, updating the statistical message classifier stored in the memory according to the first classification by the processor performing the logarithmic calculation; in the event that the first classifier does not make the first classification, testing the message with a second classifier, wherein the second classifier is capable of making a second classification; and updating the statistical message classifier stored in the memory according to the second classification by the processor, wherein the statistical message classifier corresponds to a probability that the feature in the message is spam; identifying that the message is not spam based on the probability that the feature in the message is spam; and delivering the message to a recipient based on identifying that the message is not spam.
 21. A method for improving a statistical message classifier comprising: receiving a message over a network communication interface; identifying by a processor executing instructions out of a memory a feature in the message that is associated with a junk count; testing the message with a first classifier by the processor, wherein the first classifier is a reliable junk classifier capable of making a first classification by the processor performing a calculation according to a logarithmic function including the junk count, wherein the first classifier outputs a value for the statistical message classifier for storage in the memory; in the event that the message is classifiable by the first classifier, updating the statistical message classifier stored in the memory according to the first classification by the processor performing the logarithmic calculation; in the event that the first classifier does not make the first classification, testing the message with a second classifier, wherein the second classifier is capable of making a second classification; and updating the statistical message classifier stored in the memory according to the second classification by the processor, wherein the statistical message classifier corresponds to a probability that the feature in the message is spam; identifying that the message is spam based on the probability that the feature in the message is spam; and quarantining the message.
 22. The method for improving a message classifier as recited in claim 20, wherein the second classifier is a reliable good classifier having a probability of erroneous classification of less than one percent.
 23. The method for improving a message classifier as recited in claim 21, wherein the second classifier is a reliable junk classifier having a probability of erroneous classification of less than one percent.
 24. The method for improving a message classifier as recited in claim 21, wherein the first classifier is user-augmented.
 25. A system for classifying a message, comprising: a memory; a processor; and a network interface, wherein: a message is received over the network communication interface; the processor executing instructions out of the memory: identifies a feature in the message that is associated with a junk count, wherein a statistical message classifier stored in the memory corresponds to a probability that the feature in the message is spam, and tests the message with a message classifier by performing a calculation according to a logarithmic function including the junk count, machine classifier coupled to the statistical message classifier, the machine classifier configured to test the message and outputs a value for the statistical message classifier stored in the memory, and the statistical message classifier is updated according to the logarithmic calculation by the machine classifier and corresponds to a probability that the feature in the message is spam; identifies that the message is spam based on the probability that the feature in the message is spam; and quarantines the message.
 26. A system for improving a statistical message classifier, comprising: a memory; a processor; and a network interface, wherein: a message is received over the network communication interface; the processor executing instructions out of the memory: identifies a feature in the message that is associated with a junk count tests the message using a first classifier making a first classification according to a calculation according to a logarithmic function including the junk count, the first classifier, the first classifier further outputs a value for the statistical message classifier for storage in the memory and updates the statistical message classifier according to the logarithmic calculation, wherein the statistical message corresponds to a probability that the feature in the message is spam; and second classifier coupled to the first classifier, capable of reliably making a second classification, and configured to further test the message in the event that the message is not classifiable by the first classifier; identifies that the message is spam based on the probability that the feature in the message is spam; and quarantines the message.
 27. A non-transitory computer readable storage medium having embodied thereon a program, the program being executable by a processor to perform a method for improving a statistical message classifier, the method comprising: receiving a message over a network communication interface; identifying by a processor executing instructions out of a memory a feature in the message that is associated with a junk count; testing the message with a machine classifier by the processor performing a calculation according to a logarithmic function including the junk count, wherein the machine classifier is capable of making a classification of the message; and updating the statistical message stored in the memory classifier according to the reliable classification made by the machine classifier, wherein the statistical message classifier stored in the memory corresponds to a probability that the feature in the message is spam; identifying that the message is spam based on the probability that the feature in the message is spam; and quarantining the message.
 28. A non-transitory computer readable storage medium having embodied thereon a program, the program being executable to perform a method for improving a statistical message classifier, the method comprising: receiving a message over a network communication interface; identifying by a processor executing instructions out of a memory a feature in the message that is associated with a junk count testing the message with a fist classifier wherein the first classifier by the processor performing a calculation according to a logarithmic function including the junk count; in the event that the first classifier makes the classification, updating the statistical message classifier stored in the memory according to the first classification, wherein the statistical message classifier stored in the memory corresponds to a probability that the feature in the message is spam; in the event that the first classifier does not make the classification, testing the message with a second classifier, wherein the second classifier is capable of reliably making a second classification; and updating the statistical message classifier stored in the memory according to the second classifications; identifying that the message is spam based on the probability that the feature in the message is spam; and quarantining the message. 